<?php
//products模型来操作proudcts表
class ProductsModel extends Model{
    //获取products表数据
    public function getList(){
        //获取商品数据
        return $this->mypdo->fetchAll('select * from products');
    }
    //删除商品
    public function del($proid){
       return $this->mypdo->exec("delete from products where proid=$proid");
    }
}
